package cn.jorian.framework.bean;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 订单取消
 */
@Data
public class OrderCancelBackBean {

    private Integer dataType;//单据类型
    private String ownerCode;//	货主代码
    private String orderNo;//	总单号
    private String cancelMan;//	取消人
    private String cancelTime;//	取消时间
    private String remarks;//	取消备注
    private String srcid;//	业务流水号
    private String businessType;//	业务类型
    private String cancelResultFlag;//	取消结果
    private String cancelResultRemarks;//	结果原因
    private List<DtlBean> dtlList;//订单明细列表
    private Integer status;

    private Long inputmanid;
    private String inputmanname;

    public void addList(DtlBean bean) {
        if (dtlList == null) {
            dtlList = new ArrayList<>();
        }
        dtlList.add(bean);
    }

    public void addList(List<DtlBean> list) {
        if (dtlList == null) {
            dtlList = new ArrayList<>();
        }
        dtlList.addAll(list);
    }

    @Data
    public static class DtlBean {
        private String orderDtlNo;//	明细号
        private String orderNo;//	总单号
        private String businessType;//	业务类型
        private Integer status;
        private Integer dataType;//单据类型
    }

}
